//package com.songjia.ribbon.controller;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.songjia.ribbon.service.RibbonService;
//
//@RestController
//public class TestController {
//	
//	private static final Logger LOG = LoggerFactory.getLogger(TestController.class);
//
//	@Autowired
//	private RibbonService ribbonService;
//
//	@Value("${spring.application.name}")
//	private String serviceName;
//	
//	/**
//	 * 测试地址：http://localhost:8765/hi?name=songjia
//	 * 
//	 * 结果：
//	 * 
//	 * @param name
//	 * @return
//	 */
//	@RequestMapping(value = "/hello", method = RequestMethod.GET)
//	public String index(@RequestParam(value = "name", required = false, defaultValue = "songjia") String name) {
//		LOG.info("serviceName: {}", serviceName);
//		return this.ribbonService.helloService(name);
//	}
//}
